import request from '@/utils/request'

export function hospitalIdNew(data) {
  return request({
    url: '/deptmanage/hospitalIdNew',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function addNew(data) {
  return request({
    url: '/deptmanage/addNew',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function update(data) {
  return request({
    url: '/deptmanage/update',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function hospitalIdDept(data) {
  return request({
    url: '/deptmanage/hospitalIdDept',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
